package com.example.pojo;

import java.util.List;

public class Tree {
    private Integer labelId;
    private String label;
    private Integer labelType;
    private Integer ancestor;
    private Integer descendant;
    private Integer pathType;
    private List<Tree> children;

    public List<Tree> getChildren() {
        return children;
    }

    public void setChildren(List<Tree> children) {
        this.children = children;
    }

    public Tree() {
    }

    public Integer getLabelId() {
        return labelId;
    }

    public void setLabelId(Integer labelId) {
        this.labelId = labelId;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getAncestor() {
        return ancestor;
    }

    public void setAncestor(Integer ancestor) {
        this.ancestor = ancestor;
    }

    public Integer getDescendant() {
        return descendant;
    }

    public void setDescendant(Integer descendant) {
        this.descendant = descendant;
    }

    public Integer getPathType() {
        return pathType;
    }

    public void setPathType(Integer pathType) {
        this.pathType = pathType;
    }

    public Integer getLabelType() {
        return labelType;
    }

    public void setLabelType(Integer labelType) {
        this.labelType = labelType;
    }

    @Override
    public String toString() {
        return "Tree{" +
                "labelId=" + labelId +
                ", label='" + label + '\'' +
                ", labelType=" + labelType +
                ", ancestor=" + ancestor +
                ", descendant=" + descendant +
                ", pathType=" + pathType +
                ", children=" + children +
                '}';
    }
}
